<extend name="Index/index" />
<block name="nav">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="<{:U(Index/index)}>">首页</a>
            </li>
            <li class="active">前台用户</li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search" action="<{:U(User/index)}>" method="post">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" name="name" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
                <button class="btn-sm btn-primary">搜索</button>
            </form>
        </div><!-- #nav-search -->
    </div>
</block>
<block name="nav1">
    <div class="page-content">
        <div class="page-header">
            <h1>
                前台用户管理
                <small>
                    <i class="icon-double-angle-right"></i>
                     查看
                </small>
            </h1>
        </div><!-- /.page-header -->
    </div>
</block>
<block name="admin">

    <div class="pull-left col-md-12">
        <h1 class="text-center"><{$title}></h1>
        <a href="<{:U('User/add')}>" class="btn-lg btn-info">添加</a>
        <hr>
        <table class="table h4 mt10">
            <tr class="blue">
                <th>id</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>电话</th>
                <th>积分</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="v">
            <tr>
                <td><{$v['id']}></td>
                <td><{$v['name']}></td>
                <td><{$v['age']}></td>
                <td>
                    <switch name="v['sex']">
                        <case value="0">女</case>
                        <case value="1">男</case>
                        <case value="2">保密</case>
                    </switch>
                </td>
                <td><{$v['phone']}></td>
                <td><{$v['score']}></td>
                <td>
                    <a href="<{:U('User/edit',array('id'=>$v['id']))}>" class="btn-lg btn-primary">编辑</a>
                    <a href="<{:U('User/del',array('id'=>$v['id']))}>" class="btn-lg btn-danger">删除</a>
                </td>
            </tr>
            </volist>
            <tr><td colspan="7">共<{$count}>条记录,当前<{$p}>页</td></tr>
        </table>
        <!-- 分页 -->
        <div class="text-center">
            <hr>
            <{$page}>
        </div>
    </div>

</block>
